import request from '@/utils/request'

// 查询hxs项目入库单列表
export function listDealHxsWfStorage(query) {
  return request({
    url: '/storage/dealHxsWfStorage/list',
    method: 'get',
    params: query
  })
}

// 查询hxs项目入库单详细
export function getDealHxsWfStorage(data) {
  return request({
    url: '/storage/dealHxsWfStorage/getInfo',
    method: 'post',
    data: data
  })
}

// 初始化项目入库信息
export function getDealInitialize(dealId) {
  return request({
    url: '/storage/dealHxsWfStorage/getDealInitialize/' + dealId,
    method: 'get'
  })
}

// 保存hxs项目入库单
export function saveDealHxsWfStorage(data) {
  return request({
    url: '/storage/dealHxsWfStorage/save',
    method: 'post',
    data: data
  })
}

// 删除hxs项目入库单
export function delDealHxsWfStorage(id) {
  return request({
    url: '/storage/dealHxsWfStorage/' + id,
    method: 'delete'
  })
}

// 导出hxs项目入库单
export function exportDealHxsWfStorage(query) {
  return request({
    url: '/storage/dealHxsWfStorage/export',
    method: 'get',
    params: query
  })
}

// 查询行业选项
export function industryList(data) {
  return request({
    url: '/storage/dealHxsWfStorage/industryList',
    method: 'post',
    data: data
  })
}
